﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using NHibernate.Dialect;
using NHibernate;
using NHibernate.Dialect.Function;

namespace MedicalCare.IoCSetup
{
    public class CustomFunctionsMsSql2005Dialect : MsSql2005Dialect
    {
        public CustomFunctionsMsSql2005Dialect()
        {
            RegisterFunction("rowcount", new NoArgSQLFunction("count(*) over", NHibernateUtil.Int32, true));
        }
    }
}